package com.zbkj.crmeb.store.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zbkj.crmeb.store.model.StoreOrder;
import com.zbkj.crmeb.user.model.User;

import java.util.List;

/**
 * 人群特征服务类
 * @Author: wangzh
 * @Date: 2022/9/28 10:17
 */
public interface CrowdCharacteristicsOrderService extends IService<StoreOrder> {

    /**
     * 功能描述: 筛选分群条件中，最近多少天有无店铺购买记录的用户
     * @Param: [request]
     * @Return: void
     * @Author: wangzh
     * @Date: 2022/9/28 16:24
     */
    void SiftPurchase(List<User> users, Integer groupId, Integer code, Integer day, Integer merId);

    /**
     * 功能描述: 筛选有无复购的用户
     * @Param: [request]
     * @Return: void
     * @Author: wangzh
     * @Date: 2022/9/29 11:52
     */
    void SiftRePurchase(List<User> users, Integer groupId, Integer code, Integer day, Integer merId);

    /**
     * @author: wangzh
     * @date: 2022/9/29 22:06
     * @Description: 筛选符合实付金额/实付次数的用户
     */
    void SiftPayPrice(List<User> users, Integer groupId, Integer code, Integer merId, Integer judgeCondition, Integer conditionOne, Integer conditionTwo);

    /**
     * @author: wangzh
     * @date: 2022/9/29 22:06
     * @Description: 筛选实际支付次数符合要求的用户
     */
    void SiftPayTime(List<User> users, Integer groupId, Integer code, Integer merId, Integer judgeCondition, Integer conditionOne, Integer conditionTwo);

}
